<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
<title>进入商品大类</title>
<link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body>
    <div th:replace="common/top">

    </div>
    <div id="BackLink">
        <a th:href="@{view}">Return to Main Menu</a>
    </div>
<div id="Content">
    <div id="Catalog">

        <h2 th:text="${category.name}">Category的name属性</h2>

        <table>
            <tr>
                <th>Product ID</th>
                <th>Name</th>
            </tr>

            <tr th:each="product:${productList}">
                <td> <a th:href="@{'viewProduct?productId='+${product.productId}}" th:text="${product.productId}">productId</a></td>
                <td th:text="${product.name}"> product name</td>
            </tr>

<!--            <c:forEach var="product" items="${actionBean.productList}">-->
<!--                <tr>-->
<!--                    <td><stripes:link-->
<!--                            beanclass="org.mybatis.jpetstore.web.actions.CatalogActionBean"-->
<!--                            event="viewProduct">-->
<!--                        <stripes:param name="productId" value="${product.productId}" />-->
<!--                        ${product.productId}-->
<!--                    </stripes:link></td>-->
<!--                    <td>${product.name}</td>-->
<!--                </tr>-->
<!--            </c:forEach>-->
        </table>

    </div>
</div>
<div th:replace="common/bottom">

</div>
</body>
</html>